/*
-----------------------------------------------------------------------------
This source file is part of DIVA
The project of Engineering Lab, dept. of CSIE, NTNU.

Copyright (c) 2000-2006 The Software Engineering Lab, dept. of CSIE, NTNU.
-----------------------------------------------------------------------------
Filename:    plain_lbvm.h
Description: This file is a vm that show boolean value in shape of ball.
-----------------------------------------------------------------------------
*/
/*------------------------------------------------------------*/
#ifndef _plain_lbvm_H_
#define	_plain_lbvm_H_
/*------------------------------------------------------------*/

#include "DIVA_VM.h"
#include "MovableText.h"

using namespace Ogre;

class plain_lbvm: public DIVA_VM{
private:
	
	// the entity and scenenode. 
	Ogre::Entity* _ent;
	MovableText* _msg;
	DIVA_VM * _bodyvm ;
	
public:
	/// constructor & destructor
	plain_lbvm(DIVA_VM *bodyvm, std::string name);
	~plain_lbvm();

	/// draw - for animation or not.
	//void draw();

	void VMPicked(Ogre::Real x,Ogre::Real y,Ogre::Real z) {}
	void VMSelected(Ogre::Real x,Ogre::Real y,Ogre::Real z) {}
	void VMDragged(Ogre::Real x,Ogre::Real y,Ogre::Real z){}
	void VMValueUpdated() ; // override the one from DIVA_VM

	// 暫時的function - 將integer轉成string
	std::string intToString(int its){
	std::stringstream ss;
	std::string str;

	ss << its;
	str = ss.str();
	ss.str("");

	return str;
	}

};
/*------------------------------------------------------------*/
#endif	//#ifndef _plain_lbvm_H_
/*------------------------------------------------------------*/